package com.gpframework.module.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gpframework.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @ClassName BrandStoreLog
 * @Author gpframework
 * @Date 2022-03-25
 * @Version 1.0.0
 * @Description 门店日志 PO对象
 */
@Data
@ToString
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("brand_store_log")
public class BrandStoreLog extends BasePlusEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long storeAuditRecordId;
    /**
     * 品牌id
     */
    private Long brandId;
    /**
     * 门店id
     */
    private Long storeId;
    /**
     * 业务类型;例如：门店购买、门店审核、门店暂停营业。
     */
    private String businessType;
    /**
     * 业务名称
     */
    private String businessName;
    /**
     * 涉及的数据Class
     */
    private String dataClass;
    /**
     * 涉及的数据JSON;建议是JSON字符串
     */
    private String dataJson;
    /**
     * 日志内容
     */
    private String content;
    /**
     * 排序
     */
    private Long sort;
    /**
     * 备注
     */
    private String remarks;

    public BrandStoreLog() {
    }

    public BrandStoreLog(BrandStore brandStore) {
        this.brandId = brandStore.getBrandId();
        this.storeId = brandStore.getStoreId();
//        this.businessType = BrandConstants.STORE_BUSINESS_TYPE_AUDIT;
//        this.businessName = BrandConstants.STORE_BUSINESS_TYPE_AUDIT_STR;
    }


}
